gtk/gtkclist.c (gtk_clist_motion) If we get a motion event with is_hint
authorTor Lillqvist <tml@iki.fi>
Sat, 15 Apr 2000 04:34:03 +0000 (04:34 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 15 Apr 2000 04:34:03 +0000 (04:34 +0000)
2000-04-15  Tor Lillqvist  <tml@iki.fi>

* gtk/gtkclist.c (gtk_clist_motion)
* gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
with is_hint FALSE, get x and y from the event. They used to be
used uninitialised. The Win32 backend never sends motion events
marked as hints. This for instance fixes the annoying file and
font selector behaviour in the Win32 version.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c
gtk/gtklist.c

index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 3cbf8fa93d27b26750099b4e73bdeb9ec7aa3d80..32cac4d7772200b5a5e98fd182f01c23fd497d45 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-15  Tor Lillqvist  <tml@iki.fi>
+
+       * gtk/gtkclist.c (gtk_clist_motion)
+       * gtk/gtklist.c (gtk_list_motion_notify): If we get a motion event
+       with is_hint FALSE, get x and y from the event. They used to be
+       used uninitialised. The Win32 backend never sends motion events
+       marked as hints. This for instance fixes the annoying file and
+       font selector behaviour in the Win32 version.
+
 2000-04-14  Tor Lillqvist  <tml@iki.fi>
 
        * gtk/gtksignal.c: (Win32:) Export the gtk_private_signals and
index 34396b6295c06faefbe95dd69f4f175df58eec63..c01095a23446636b5efaa4057b603cc54b2a703a 100644 (file)
@@ -5266,6 +5266,11 @@ gtk_clist_motion (GtkWidget      *widget,
 
   if (event->is_hint || event->window != clist->clist_window)
     gdk_window_get_pointer (clist->clist_window, &x, &y, NULL);
+  else
+    {
+      x = event->x;
+      y = event->y;
+    }
 
   if (GTK_CLIST_REORDERABLE(clist) && button_actions & GTK_BUTTON_DRAGS)
     {
index f4239604a88e39633bdddf39d15eb1aa5e92a406..a114dcad7556fece71eb3533308de37dfded8831 100644 (file)
@@ -563,6 +563,11 @@ gtk_list_motion_notify (GtkWidget      *widget,
 
   if (event->is_hint || event->window != widget->window)
     gdk_window_get_pointer (widget->window, &x, &y, NULL);
+  else
+    {
+      x = event->x;
+      y = event->y;
+    }
 
   adj = gtk_object_get_data_by_id (GTK_OBJECT (list), hadjustment_key_id);